package cn.zhizihua.mapper;

import cn.zhizihua.pojo.Order;
import cn.zhizihua.query.OrderQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper{

    int add(Order order) ;
    int update(Order order) ;
    int delete(Integer id) ;
    Order getById(Integer id) ;
    List<Order> getAll(OrderQuery orderQuery) ;

    List<Order> getOrderByUserId(Integer userId);
}
